//
//  BubbleExt.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/7/28.
//

import Foundation
class BubbleExt {
    static func getBubble(id: String?) -> BubbleBean? {
        // 检查ID是否为空
        guard let id = id, !id.isEmpty else {
            return nil
        }
        
        // 创建BubbleBean列表
        let list: [BubbleBean] = [
            getBubble1(),
            getBubble2(),
            // getBubble3(),  // 注释掉
            getBubble4(),
            getBubble5(),
            getBubble6(),
            getBubble7(),
            getBubble8(),
            getBubble9(),
            getBubble10(),
            getBubble11(),
            getBubble12(),
            getBubble13(),
            getBubble14(),
            getBubble15(),
            getBubble16(),
            getBubble17(),
            getBubble18(),
            getBubble19(),
            getBubble20(),
            getBubble21(),
            getBubble22(),
            getBubble23(),
            getBubble24(),
            getBubble25(),
            getBubble26(),
            getBubble27(),
            getBubble28(),
            getBubble29(),
            getBubble30(),
            getBubble100()
        ]
        
        // 查找第一个匹配ID的元素
        return list.first { $0.id == id }
    }
    
    private static func getBubble1() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "1"
        bean.textColor = "#000000"
        bean.minWith = 75
        bean.minHeight = 42
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble1Frame
        center.leading = 10
        center.trailing = 6
        center.top = 5
        center.bottom = 4
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble1LeftTop
        iconLeftTop.x = 5
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble1RightTop
        iconRightTop.x = -9
        iconRightTop.y = 1.5
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble1LeftBottom
        iconLeftBottom.x = 4.5
        iconLeftBottom.y = -8
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble1RightBottom
        iconRightBottom.x = -2
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble2() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "2"
        bean.textColor = "#000000"
        bean.minWith = 80
        bean.minHeight = 44
        bean.leading = 17
        //        bean.trailing = 10
        bean.top = 18
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble2Frame
        center.leading = 0
        center.trailing = 8
        center.top = 0
        center.bottom = 0
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble2LeftTop
        iconLeftTop.x = 7
        iconLeftTop.y = 20
        bean.iconLeftTop = iconLeftTop
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble2RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble4() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "4"
        bean.textColor = "#ffffff"
        bean.minWith = 71
        bean.minHeight = 28
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble4Frame
        center.leading = 4
        center.trailing = 0
        center.top = 9
        center.bottom = 6
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble4LeftTop
        iconLeftTop.x = 4
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble4RightTop
        iconRightTop.x = -6
        iconRightTop.y = 4.5
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble4LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble4RightBottom
        iconRightBottom.x = -4
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble5() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "5"
        bean.textColor = "#000000"
        bean.minWith = 60
        bean.minHeight = 31
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble5Frame
        center.leading = 13
        center.trailing = 10
        center.top = 15
        center.bottom = 12
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble5LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble5RightTop
        iconRightTop.x = 0
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble5LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble5RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = -3
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble6() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "6"
        bean.textColor = "#000000"
        bean.minWith = 65
        bean.minHeight = 49
        //        bean.leading = 0
        //        bean.trailing = 0
        bean.top = 15
        bean.bottom = 9
        let center = BubbleIconBean()
        center.icon = .bubble6Frame
        center.leading = 0
        center.trailing = 0
        center.top = 0
        center.bottom = 0
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble6LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        return bean
    }
    
    private static func getBubble7() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "7"
        bean.textColor = "#000000"
        bean.minWith = 60
        bean.minHeight = 53
        //        bean.leading = 0
        //        bean.trailing = 0
        bean.top = 23
        bean.bottom = 9
        let center = BubbleIconBean()
        center.icon = .bubble7Frame
        center.leading = 14
        center.trailing = 0
        center.top = 0
        center.bottom = 0
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble7LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 4
        bean.iconLeftTop = iconLeftTop
        return bean
    }
    
    private static func getBubble8() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "8"
        bean.textColor = "#ffffff"
        bean.minWith = 80
        bean.minHeight = 59
        bean.leading = 20
        //    bean.trailing = 20
        bean.top = 20
        bean.bottom = 15
        let center = BubbleIconBean()
        center.icon = .bubble8Frame
        center.leading = 25
        center.trailing = 0
        center.top = 5
        center.bottom = 0
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble8LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        return bean
    }
    
    
    private static func getBubble9() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "9"
        bean.textColor = "#000000"
        bean.minWith = 72
        bean.minHeight = 32
        bean.leading = 20
        //    bean.trailing = 20
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble9Frame
        center.leading = 1.5
        center.trailing = 7
        center.top = 6
        center.bottom = 2
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble9LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble9RightTop
        iconRightTop.x = -3
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble9LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = -1
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble9RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble10() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "10"
        bean.textColor = "#000000"
        bean.minWith = 90
        bean.minHeight = 35
        bean.leading = 25
        //        bean.trailing = 10
        bean.top = 10
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble10Frame
        center.leading = 1
        center.trailing = 6.5
        center.top = 12
        center.bottom = 6
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble10LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble10RightTop
        iconRightTop.x = 0
        iconRightTop.y = 5
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble10LeftBottom
        iconLeftBottom.x = 16
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        return bean
    }
    
    
    private static func getBubble11() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "11"
        bean.textColor = "#000000"
        bean.minWith = 59
        bean.minHeight = 35
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble11Frame
        center.leading = 13
        center.trailing = 0
        center.top = 10
        center.bottom = 7
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble11LeftTop
        iconLeftTop.x = 8
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble11RightTop
        iconRightTop.x = 0
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble11LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        return bean
    }
    
    
    private static func getBubble12() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "12"
        bean.textColor = "#000000"
        bean.minWith = 63
        bean.minHeight = 25
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble12Frame
        center.leading = 16
        center.trailing = 3
        center.top = 8
        center.bottom = 4
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble12LeftTop
        iconLeftTop.x = 13
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble12RightTop
        iconRightTop.x = 0
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble12LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble12RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = -1
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble13() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "13"
        bean.textColor = "#000000"
        bean.minWith = 59
        bean.minHeight = 35
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble13Frame
        center.leading = 20
        center.trailing = 10
        center.top = 11
        center.bottom = 8
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble13LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble13RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble14() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "14"
        bean.textColor = "#000000"
        bean.minWith = 59
        bean.minHeight = 35
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble14Frame
        center.leading = 8
        center.trailing = 6
        center.top = 11
        center.bottom = 5
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble14LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble14RightTop
        iconRightTop.x = 0
        iconRightTop.y = 6
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble14LeftBottom
        iconLeftBottom.x = 2
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble14RightBottom
        iconRightBottom.x = -1
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble15() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "15"
        bean.textColor = "#ffffff"
        bean.minWith = 59
        bean.minHeight = 30
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble15Frame
        center.leading = 13
        center.trailing = 0
        center.top = 8.5
        center.bottom = 6
        bean.iconCenter = center
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble15RightTop
        iconRightTop.x = 0
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble15LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble15RightBottom
        iconRightBottom.x = -3
        iconRightBottom.y = -1.5
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble16() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "16"
        bean.textColor = "#000000"
        bean.minWith = 59
        bean.minHeight = 30
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble16Frame
        center.leading = 9
        center.trailing = 8
        center.top = 10
        center.bottom = 5
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble16LeftTop
        iconLeftTop.x = 1.5
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble16RightTop
        iconRightTop.x = 0
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble16LeftBottom
        iconRightTop.x = 0
        iconRightTop.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble16RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble17() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "17"
        bean.textColor = "#000000"
        bean.minWith = 70
        bean.minHeight = 35
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble17Frame
        center.leading = 2.5
        center.trailing = 2.5
        center.top = 7
        center.bottom = 0
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble17LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble17RightTop
        iconRightTop.x = 0
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        return bean
    }
    
    
    private static func getBubble18() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "18"
        bean.textColor = "#000000"
        bean.minWith = 59
        bean.minHeight = 30
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble18Frame
        center.leading = 12
        center.trailing = 10
        center.top = 7
        center.bottom = 6
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble18LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble18LeftBottom
        iconLeftBottom.x = 12
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble18RightBottom
        iconRightBottom.x = -7
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble19() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "19"
        bean.textColor = "#ffffff"
        bean.minWith = 59
        bean.minHeight = 30
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble19Frame
        center.leading = 0
        center.trailing = 10
        center.top = 5.5
        center.bottom = 0
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble19LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble19RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble20() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "20"
        bean.textColor = "#000000"
        bean.minWith = 59
        bean.minHeight = 35
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble20Frame
        center.leading = 5
        center.trailing = 17
        center.top = 6
        center.bottom = 7
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble20LeftTop
        iconLeftTop.x = 2
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble20RightTop
        iconRightTop.x = -17
        iconRightTop.y = 3
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble20LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = -4
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble20RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble21() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "21"
        bean.textColor = "#F6F7FB"
        bean.minWith = 74
        bean.minHeight = 35
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble21Frame
        center.leading = 7
        center.trailing = 4
        center.top = 6
        center.bottom = 4
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble21LeftTop
        iconLeftTop.x = 9
        iconLeftTop.y = 3
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble21RightTop
        iconRightTop.x = -0
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble21LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble21RightBottom
        iconRightBottom.x = 2
        iconRightBottom.y = -0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble22() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "22"
        bean.textColor = "#F6F7FB"
        bean.minWith = 74
        bean.minHeight = 35
        //        bean.leading = 10
        //        bean.trailing = 10
        //        bean.top = 5
        //        bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble22Frame
        center.leading = 7
        center.trailing = 4
        center.top = 10
        center.bottom = 4
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble22LeftTop
        iconLeftTop.x = 2
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble22RightTop
        iconRightTop.x = -2
        iconRightTop.y = 5
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble22LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble22RightBottom
        iconRightBottom.x = -0
        iconRightBottom.y = -1.5
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble23() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "23"
        bean.textColor = "#000000"
        bean.minWith = 84
        bean.minHeight = 47
        bean.leading = 15
        bean.trailing = 15
        bean.top = 8
        bean.bottom = 13
        let center = BubbleIconBean()
        center.icon = .bubble23Frame
        center.leading = 9
        center.trailing = 0
        center.top = 9
        center.bottom = 0
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble23LeftTop
        iconLeftTop.x = 15
        iconLeftTop.y = 2
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble23RightTop
        iconRightTop.x = -5
        iconRightTop.y = 11
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble23LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble23RightBottom
        iconRightBottom.x = -2
        iconRightBottom.y = -0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble24() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "24"
        bean.textColor = "#000000"
        bean.minWith = 84
        bean.minHeight = 47
        bean.leading = 15
        bean.trailing = 15
        bean.top = 8
        bean.bottom = 13
        let center = BubbleIconBean()
        center.icon = .bubble24Frame
        center.leading = 7
        center.trailing = 4
        center.top = 10
        center.bottom = 3
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble24LeftTop
        iconLeftTop.x = 4
        iconLeftTop.y = 4
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble24RightTop
        iconRightTop.x = -17
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble24LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = -5
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble24RightBottom
        iconRightBottom.x = -0
        iconRightBottom.y = -2
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble25() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "25"
        bean.textColor = "#000000"
        bean.minWith = 70
        bean.minHeight = 30
        //    bean.leading = 10
        //    bean.trailing = 10
        //    bean.top = 5
        //    bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble26Frame
        center.leading = 16
        center.trailing = 10
        center.top = 6
        center.bottom = 3
        bean.iconCenter = center
        
        //        let iconLeftTop = BubbleIconBean2()
        //        iconLeftTop.icon = .bubble25LeftTop
        //        iconLeftTop.x = 22
        //        iconLeftTop.y = 0
        //        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble25RightTop
        iconRightTop.x = -0
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble25LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble25RightBottom
        iconRightBottom.x = -5
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble26() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "26"
        bean.textColor = "#000000"
        bean.minWith = 70
        bean.minHeight = 30
        //    bean.leading = 10
        //    bean.trailing = 10
        //    bean.top = 5
        //    bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble26Frame
        center.leading = 16
        center.trailing = 8
        center.top = 13
        center.bottom = 3
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble26LeftTop
        iconLeftTop.x = 22
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble26RightTop
        iconRightTop.x = -0
        iconRightTop.y = 5
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble26LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble26RightBottom
        iconRightBottom.x = -3
        iconRightBottom.y = -2
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    private static func getBubble27() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "27"
        bean.textColor = "#000000"
        bean.minWith = 70
        bean.minHeight = 35
        //    bean.leading = 10
        //    bean.trailing = 10
        //    bean.top = 5
        //    bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble27Frame
        center.leading = 18
        center.trailing = 12
        center.top = 7
        center.bottom = 9
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble27LeftTop
        iconLeftTop.x = 14
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble27RightTop
        iconRightTop.x = -3.5
        iconRightTop.y = 0
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble27LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble27RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = -7
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    private static func getBubble28() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "28"
        bean.textColor = "#000000"
        bean.minWith = 70
        bean.minHeight = 35
        //    bean.leading = 10
        //    bean.trailing = 10
        //    bean.top = 5
        //    bean.bottom = 5
        let center = BubbleIconBean()
        center.icon = .bubble28Frame
        center.leading = 16
        center.trailing = 12
        center.top = 13.5
        center.bottom = 8
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble28LeftTop
        iconLeftTop.x = 8
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble28RightTop
        iconRightTop.x = -9
        iconRightTop.y = 8
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble28LeftBottom
        iconLeftBottom.x = 0
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble28RightBottom
        iconRightBottom.x = 0
        iconRightBottom.y = -5
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    
    private static func getBubble29() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "29"
        bean.textColor = "#ffffff"
        bean.minWith = 70
        bean.minHeight = 35
        bean.leading = 10
        bean.trailing = 20
        bean.top = 5
        bean.bottom = 3
        let center = BubbleIconBean()
        center.icon = .bubble29Frame
        center.leading = 13
        center.trailing = 0
        center.top = 14
        center.bottom = 7
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble29LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble29RightTop
        iconRightTop.x = -5
        iconRightTop.y = 8
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble29LeftBottom
        iconLeftBottom.x = 7
        iconLeftBottom.y = -4
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble29RightBottom
        iconRightBottom.x = -6
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    private static func getBubble30() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "30"
        bean.textColor = "#877682"
        bean.minWith = 70
        bean.minHeight = 35
        bean.leading = 10
        bean.trailing = 18
        bean.top = 5
        bean.bottom = 3
        let center = BubbleIconBean()
        center.icon = .bubble30Frame
        center.leading = 11
        center.trailing = 0
        center.top = 15
        center.bottom = 4
        bean.iconCenter = center
        
        let iconLeftTop = BubbleIconBean2()
        iconLeftTop.icon = .bubble30LeftTop
        iconLeftTop.x = 0
        iconLeftTop.y = 0
        bean.iconLeftTop = iconLeftTop
        
        let iconRightTop = BubbleIconBean2()
        iconRightTop.icon = .bubble30RightTop
        iconRightTop.x = -11
        iconRightTop.y = 14
        bean.iconRightTop = iconRightTop
        
        let iconLeftBottom = BubbleIconBean2()
        iconLeftBottom.icon = .bubble30LeftBottom
        iconLeftBottom.x = 3
        iconLeftBottom.y = 0
        bean.iconLeftBottom = iconLeftBottom
        
        let iconRightBottom = BubbleIconBean2()
        iconRightBottom.icon = .bubble30RightBottom
        iconRightBottom.x = -3
        iconRightBottom.y = 0
        bean.iconRightBottom = iconRightBottom
        return bean
    }
    
    private static func getBubble100() -> BubbleBean {
        let bean = BubbleBean()
        bean.id = "100"
        bean.textColor = "#000000"
        bean.minWith = 74
        bean.minHeight = 35
        bean.leading = 20
        bean.trailing = 20
        bean.top = 20
        bean.bottom = 20
        let center = BubbleIconBean()
        center.time = 0.06
        center.icons = [.bubble100Frame0,.bubble100Frame1,.bubble100Frame2,.bubble100Frame3,.bubble100Frame4,.bubble100Frame5,.bubble100Frame6,.bubble100Frame7,.bubble100Frame8,.bubble100Frame9,.bubble100Frame10,.bubble100Frame11,.bubble100Frame12,.bubble100Frame13,.bubble100Frame14,.bubble100Frame15,.bubble100Frame16,.bubble100Frame17,.bubble100Frame18,.bubble100Frame19]
        
        bean.iconCenter = center
        
        return bean
    }
}
